<div class="blog-right-head">
	<h3><i class="glyphicon glyphicon-th-list"></i> CATEGORIES</h3>
</div>
<div class="blog-right-cate-list">
	<ul>
		<?php
		$categories = array();
		if(is_category() || is_single()){
			$categories = get_the_category();
		}
		$aCategory = get_categories();
		foreach($aCategory as $cat) {
			$active_class = "";
			$link = "#";
			if(isset($categories[0]) && $categories[0]->term_id == $cat->term_id){
				$active_class = "active";
			} else {
				$link = get_category_link($cat->term_id);
			}
			?>
			<li>
				<a href="<?php echo $link; ?>" title="<?php echo $cat->name; ?>" class="<?php echo $active_class; ?>">
					<?php echo $cat->name; ?>
				</a>
			</li>
			<?php
		} 
		?>
	</ul>
</div>
<!-- start-tags -->
<div class="blog-right-head mgt15">
	<h3><i class="glyphicon glyphicon-tags"></i> Tag's</h3>
</div>
<div class="tags-for">
	<ul>
		<?php wp_tag_cloud(array('smallest'=>'0.775', 'largest'=>'0.775', 'unit'=>'em', 'format'=>'list')); ?>
	</ul>
	<div class="clear"> </div>
</div>
<!-- //End-tags -->